<?php

/**
 * PolissageDecapage form.
 *
 * @package    appcemhti
 * @subpackage form
 * @author     Steve Cancès
 * @version    SVN: $Id: sfDoctrineFormTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class PolissageDecapageForm extends BasePolissageDecapageForm
{
    public function configure()
    {
        //$this->widgetSchema['mecanique'] = new sfWidgetFormInputCheckbox();
        $this->widgetSchema['mecanique'] = new sfWidgetFormSelectRadio(array(
            'choices' => (array(
                1 => "Mécanique",
                0 => "Chimique"
            ))
        ));
        $this->defaults['mecanique'] = 1;
        $this->widgetSchema['mecanique']->setLabel("Type");
        
        $this->validatorSchema['id_traitement'] = new sfValidatorInteger();
    }
}
